package com.tanglongan.designPattern.dp04_builder.demo99;

import lombok.Data;

public class GenericClient {

    public static void main(String[] args) {
        IBuilder builder = new ConcreteBuilder();
        System.out.println(builder.build());
    }

    @Data
    static class Product {
        private String name;
    }

    interface IBuilder {
        Product build();
    }

    static class ConcreteBuilder implements IBuilder {
        @Override
        public Product build() {
            return new Product();
        }
    }
}
